home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 430_01 / m68kdis / mac / makes < prev    next >
Encoding:
Text File  |  1994-12-29  |  1.2 KB  |  56 lines

  1. #!/bin/sh
  2.  
  3. #                 Author:  Christopher G. Phillips
  4. #              Copyright (C) 1994 All Rights Reserved
  5. #
  6. #                              NOTICE
  7. #
  8. # Permission to use, copy, modify, and distribute this software and
  9. # its documentation for any purpose and without fee is hereby granted
  10. # provided that the above copyright notice appear in all copies and
  11. # that both the copyright notice and this permission notice appear in
  12. # supporting documentation.
  13. #
  14. # The author makes no representations about the suitability of this
  15. # software for any purpose.  This software is provided ``as is''
  16. # without express or implied warranty.
  17.  
  18. MACDIR=.
  19.  
  20. if [ $# -ne 1 ]
  21. then
  22.     echo Usage: $0 file.rf
  23.     exit 1
  24. fi
  25. if [ ! -f $1.out ]
  26. then
  27.     $MACDIR/rf $1.rf > $1.out
  28. fi
  29. if [ ! -f $1.b ]
  30. then
  31.     perl $MACDIR/makeb.pl < $1.out > $1.b
  32. fi
  33. if [ ! -f $1.n ]
  34. then
  35.     perl $MACDIR/maken.pl < $1.out > $1.n
  36. fi
  37. args="-s 4 -sp -odd -a $MACDIR/mac.a -j $MACDIR/mac.j -b $1.b -n $1.n -030 -881"
  38. if [ -f $1.i ]
  39. then
  40.     args="$args -i $1.i"
  41. fi
  42. if [ -f $1.f ]
  43. then
  44.     args="$args -f $1.f"
  45. fi
  46. if [ -f $1.ns ]
  47. then
  48.     args="$args -ns $1.ns"
  49. fi
  50. $MACDIR/../m68kdis $args $1.rf 2> $1.rf.stderr
  51. perl $MACDIR/rftos.pl $1
  52. $MACDIR/../wierd $1.rf.s | more
  53. exit 0
  54.  
  55. # whybad.pl < d2 | worst.pl $1.n | more
  56.